# -*- coding: utf-8 -*-
import scrapy


class ZhihuSpider(scrapy.Spider):
    name = 'zhihu'
    allowed_domains = ['https://www.zhihu.com']
    start_urls = ['http://https://www.zhihu.com/']

    def parse(self, response):
        pass

    def start_requests(self):
        return [scrapy.Request(url='https://www.zhihu.com/api/v3/oauth/sign_in', callback=self.login, dont_filter=True)]

    def login(self, response):
        post_url = 'https://www.zhihu.com/api/v3/oauth/sign_in'

        post_data = {

        }